home *** CD-ROM | disk | FTP | other *** search
- Path: rumpelkammer.uni-mannheim.de!ba57
- From: ba57@rumpelkammer.uni-mannheim.de (User ba57)
- Newsgroups: comp.lang.c++
- Subject: Re: Strange Syntax? int foo( ) = [xxx] ;
- Date: 12 Mar 1996 16:25:53 GMT
- Organization: Rechenzentrum Uni Mannheim
- Message-ID: <4i48ih$eo@trumpet.uni-mannheim.de>
- References: <4h0k7e$dq2@newsbf02.news.aol.com>
- NNTP-Posting-Host: rumpelkammer.uni-mannheim.de
- X-Newsreader: TIN [version 1.2 PL2]
-
- Champalber (champalber@aol.com) wrote:
- : When I use BC++ with Object Window Libraries (OWL), I use the following
- : line to say "When my window receives a MW_KEYDOWN message, call WMKeyDown(
- : )":
-
- : void WMKeyDown( RTMessage Msg) = [WM_FIRST + WM_KEYDOWN];
-
- : Can somebody tell me more about this syntax?
- : What do the [ ]'s represent?
- : Is this a BC++ feature, or a C++ feature?
- : How can I use this feature?
-
- It is (or rather used to be) a special BC++ feature. As far as I know, it was
- removed from later versions of BC++ (i.e., later than 3.1). Borland's OWL now
- uses another technique to map messages to member functions (some macro stuff,
- I think). Apparently, Borland wanted to be more compliant with the standard.
-
- Hope this helps,
- Thomas
-